#include <stdint.h>
#include "delay.h"
#include "systick.h"
#include "led_drv.h"
#include "key_drv.h"
#include "stm32f4xx.h"

int main(void)
{
	uint8_t keyVal;
	DelayInit();
	SystickInit();
	LedDrvInit();
	KeyDrvInit();
	RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOA,ENABLE);
	while(1)
	{
    keyVal=GPIO_ReadInputDataBit(GPIOA,GPIO_Pin_0);
		if(keyVal==1)
		{
			TrunOnLed(LED_G);
		}
		DelayNms(1000);
	}
}
